import request from '@/utils/request'
export function listProduct(query){
    return request({
        url: 'product/product/list',
        method: 'get',
        params: query
    })
}

export function deleteProduct(id){
    return request({
        url: 'product/product/' + id,
        method: 'delete'
    })
}

export function updateStatus(id,status){
    return request({
        url: 'product/product/updateStatus/' + id +'/' +status,
        method: 'get'
    })
}

export function updateAuditStatus(id,auditStatus){
    return request({
        url: 'product/product/updateAuditStatus/' + id +'/' +auditStatus,
        method: 'get'
    })
}